import {reqGoodsList} from "@/api"

export default {
    namespaced:true,
    state:{
        goods:{}
    },
    mutations:{
        SAVE_GOODS_LIST(state,value){
            state.goods = value
        }
    },
    actions:{
        async getGoodsList({commit},params){
            let data = await reqGoodsList(params)
            commit("SAVE_GOODS_LIST",data)
        }
    }
}